<%--
    Document   : feedback
    Created on : Oct 28, 2009, 1:51:17 AM
    Author     : Phong
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" import="DAOClass.*, java.util.ArrayList;import org.apache.jasper.tagplugins.jstl.core.ForEach"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

        <script src="JavaScript/form.js" type="text/javascript"></script>

        <link rel="stylesheet" href="css/form.css" />
        <link rel="stylesheet" href="css/style.css" />
        <script language="JavaScript" src="JavaScript/checkInput.js">
        </script>
        <title>Feedback</title>
    </head>


    <body bgcolor="#154978">
        <%
            String u = "";
            Members objM = new Members();
            ArrayList<InfoMember> arrMem;
            String name = "";
            String mail = "";

            if (session.getAttribute("UserName") != null) {
                u = session.getAttribute("UserName").toString();
                arrMem = objM.getMembersByName(u);
                for (int i = 0; i < arrMem.size(); i++) {
                    name = arrMem.get(i).getFullName();
                    mail = arrMem.get(i).getEmail();
                }
            }

        %>
        <table width="1024" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" align="center" class="tableRegister">
            <!--DWLayoutTable-->

            <tr>
                <td width="1024" height="157" valign="top" background="images/Banner.jpg">

                </td>
            </tr>
            <tr>
                <td height="463" valign="top">
                    <table width="100%" border="0" cellpadding="2" cellspacing="2">
                        <!--DWLayoutTable-->
                        <tr>
                            <td height="39" colspan="3" valign="top" background="images/button/bg_login.gif">
                                <%@include file="include/loginBar.jsp" %>
                            </td>
                        </tr>
                        <tr>
                            <td width="140" rowspan="2" valign="top">

                                <!-- MENU -->
                                <%@include file="menu_left.jsp" %>

                                <!--END MENU-->

                            </td>
                            <td width="631" valign="top" class="tbmain" align="left">
                                <table width="100%" cellpadding="2" cellspacing="0" class="tbmain">
                                    <!--DWLayoutTable-->
                                    <tr>
                                        <td></td>
                                    </tr>
                                    <tr><td width="650" height="23" class="tit">Feedback Form</td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td height="300" valign="top" class="midmid">
                                            <form accept-charset="utf-8"  action="feed"  method="post" name="feed">
                                                <input type="hidden" name="formID" value="93093541626" />
                                                <div id="main">
                                                    <div class="pagebreak">
                                                        <table width="520" cellpadding="5" cellspacing="0">
                                                            <tr >
                                                                <td width="150" class="left" >
                                                                    <label >Full Name:</label>                                                                </td>
                                                                <td class="right" >
                                                                    <input type="text" size="40" name="fullName" class="text" value="<%=name%>" id="q0"  maxlength="100" maxsize="100" />                                                                </td>
                                                            </tr>
                                                            <tr >
                                                                <td width="150" class="left" >
                                                                    <label >Phone:</label>                                                                </td>
                                                                <td class="right" >
                                                                    <input type="text" size="40" name="tel" class="text" value="" id="q2"  maxlength="100" maxsize="100" />                                                                </td>
                                                            </tr>
                                                            <tr >
                                                                <td width="150" class="left" >
                                                                    <label >E-mail: <span class="required">*</span></label>                                                                </td>
                                                                <td class="right" >
                                                                    <input type="text" size="40" name="mail" class="text" value="<%=mail%>" id="q1"  onblur="validate(this,'Email')"  maxlength="100" maxsize="100" />                                                                </td>
                                                            </tr>
                                                            <tr >
                                                                <td width="150" class="left" >
                                                                    <label >Titile: <span class="required">*</span></label>                                                                </td>
                                                                <td class="right" >
                                                                    <input type="text" size="40" name="tit" class="text" value="" id="q9"  onblur="validate(this,'Required')"  maxlength="100" maxsize="100" />                                                                </td>
                                                            </tr>
                                                            <tr >
                                                                <td width="150" class="left" valign="top"  >
                                                                    <label>Your Message: <span class="required">*</span></label>                                                                </td>
                                                                <td class="right" >
                                                                    <textarea cols="60" rows="5" name="content" class="text" id="q6"  onblur="validate(this,'Required')" ></textarea>                                                                </td>
                                                            </tr>
                                                            <tr >
                                                                <td width="150" class="left" >&nbsp;                                                                </td>
                                                                <td class="right">
                                                                    <input type="submit" class="btn" value="Submit" />                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </div>
                                            </form></td>
                                    </tr>
                                    <tr>
                                        <td height="23">&nbsp;</td>
                                    </tr>
                                </table>
                                <script type="text/javascript">
                                    validate("feed");
                                </script>

                            </td>
                        </tr>

                    </table>
                </td>
            </tr>
        </table>



    </body>
</html>
